﻿using DapperExtensions;
using Nova_DAL;
using Nova_MOD;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_BLL
{
    public class TBase_InterfaceBll
    {
        private readonly TBase_InterfaceDal dal = new TBase_InterfaceDal();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Insert(string matCode)
        {
            return dal.Insert(matCode);
        }

        /// <summary>
        /// 根据物料编码查询二级编码
        /// </summary>
        /// <param name="matCode"></param>
        /// <returns></returns>
        public DataTable GetInfoByMatCode(string matCode)
        {
            return dal.GetInfoByMatCode(matCode);
        }

        public string GetSecMatId(string matCode, string ts01)
        {
            return dal.GetSecMatId(matCode, ts01);
        }
    }
}
